#ifndef MAINUSER_H
#define MAINUSER_H

#include <QWidget>
#include <QNetworkInterface>//网络信息
#include <QHostAddress>//ip地址
#include <QTcpServer> //tcp协议
#include <QTcpSocket> //socket套接字
#include <QDebug>
#include "class.h" //用户类头文件
#include "register.h"

namespace Ui {
class MainUser;
}

class MainUser : public QWidget
{
    Q_OBJECT

public:
    explicit MainUser(User user,QWidget *parent = nullptr);
    ~MainUser();

private slots:
    void on_pushButton_shuaxin_friend_clicked();

    void on_pushButton_add_friend_clicked();

    void on_pushButton_delete_friend_clicked();

    void on_pushButton_add_groupname_clicked();

    void on_pushButton_delete_groupname_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_add_friTogro_clicked();

    void on_pushButton_del_friTogro_clicked();

private:
    Ui::MainUser *ui;
    User user;  //用户对象
    QTcpSocket *socket; //客户端连接指针
};

#endif // MAINUSER_H
